import requests
import json
# resp = requests.post(url="https://ihrm-java.itheima.net/api/sys/user",headers = {"Authorization":"e37ec0ba-0132-4869-af57-84a1263b3df6"},json={
#     "username":"陈凡琪0521",
#     "mobile":"15478945216",
#     "workNumber":"20250757"
# })
# print("添加员工",resp.json())
# 查询员工
resp2 = requests.get(url="https://ihrm-java.itheima.net/api/sys/user/1925113841515540480",headers = {"Authorization":"e37ec0ba-0132-4869-af57-84a1263b3df6"})
print("查询员工：",resp2.json())
# 修改员工
resp3 = requests.put(url="https://ihrm-java.itheima.net/api/sys/user/1925113841515540480",headers = {"Authorization":"e37ec0ba-0132-4869-af57-84a1263b3df6"},json = {
    "username": "1111"})
print("修改员工：",resp3.json())
# 删除员工
resp4 = requests.delete("https://ihrm-java.itheima.net/api/sys/user/1925113841515540480",headers = {"Authorization":"e37ec0ba-0132-4869-af57-84a1263b3df6"})
print("删除员工：",resp4.json())